def is_leap_year(year):
    return (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0)

def NextDate(year, month, day):
    days_in_month = [31, 28 + is_leap_year(year), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    if day < days_in_month[month - 1]:
        day += 1
    else:
        day = 1
        if month < 12:
            month += 1
        else:
            month = 1
            year += 1
    return year, month, day

# 示例调用
year, month, day = 2025, 4, 16
new_year, new_month, new_day = NextDate(year, month, day)
print(f"{new_year}-{new_month}-{new_day}")